(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/Script/ShopComponent.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
cc._RF.push(module, '486b1KPmo5JP4Sdc7bOhx8X', 'ShopComponent', __filename);
// Script/ShopComponent.ts

Object.defineProperty(exports, "__esModule", { value: true });
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var PageView = cc.PageView;
var ShopComponent = (function (_super) {
    __extends(ShopComponent, _super);
    function ShopComponent() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    ShopComponent.prototype.onLoad = function () {
        // init logic
        this.pagView.enabled = false;
    };
    ShopComponent.prototype.toPage = function (event, params) {
        this.pagView.scrollToPage(params - 1, 0);
    };
    ShopComponent.prototype.closeCurrent = function () {
        this.node.active = false;
    };
    __decorate([
        property(cc.PageView)
    ], ShopComponent.prototype, "pagView", void 0);
    ShopComponent = __decorate([
        ccclass
    ], ShopComponent);
    return ShopComponent;
}(cc.Component));
exports.default = ShopComponent;

cc._RF.pop();
        }
        if (CC_EDITOR) {
            __define(__module.exports, __require, __module);
        }
        else {
            cc.registerModuleFunc(__filename, function () {
                __define(__module.exports, __require, __module);
            });
        }
        })();
        //# sourceMappingURL=ShopComponent.js.map
        